//
//  XWLoginButton.m
//  CGWSWW
//
//  Created by lanou3g on 16/8/13.
//  Copyright © 2016年 CXG. All rights reserved.
//

#import "XWLoginButton.h"
#import "UIView+XWExtension.h"
@implementation XWLoginButton

-(void)awakeFromNib{
    [self.titleLabel setTextAlignment:(NSTextAlignmentCenter)];
}
-(void)layoutSubviews{
    [super layoutSubviews];
    
    self.imageView.XW_y =0;
    self.imageView.XW_centerX = self.XW_width/2;
    
    self.titleLabel.XW_y =self.imageView.XW_bottom;
    self.titleLabel.XW_x = 0;
    self.titleLabel.XW_width = self.XW_width;
    self.titleLabel.XW_high =self.XW_high -self.imageView.XW_bottom;
    
}

@end
